package top.lucky.redishmdp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import top.lucky.redishmdp.mapper.UserInfoMapper;
import top.lucky.redishmdp.service.UserInfoService;

/**
 * @author Jane
 * @date 2022/10/21, 14:33
 */
@Controller
public class TestController {
	
	@Autowired
	private UserInfoMapper userInfoMapper;
	@Autowired
	private UserInfoService userInfoService;
	
	@GetMapping("test/test")
	public void insert() {
		for (int i = 600; i < 700; i++) {
			new Thread(()->{
				//testLookUp(Thread.currentThread().getName(), l);
				userInfoService.insert();
			}).start();
		}
	}
	
	public static void main(String[] args) {
	}
}
